{
    "config": {
        "wide_screen_mode": true
    },
    "elements": [
        {
            "tag": "column_set",
            "flex_mode": "none",
            "background_style": "default",
            "columns": [
                {
                    "tag": "column",
                    "width": "weighted",
                    "weight": 1,
                    "vertical_align": "top",
                    "elements": [
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "grey",
                            "columns": [
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**appId\n<font color='red'> {{$main->appId}} </font>**",
                                            "text_align": "center"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "tag": "column",
                    "width": "weighted",
                    "weight": 1,
                    "vertical_align": "top",
                    "elements": [
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "grey",
                            "columns": [
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**平台\n<font color='red'> {{$main->platformId}} </font>**",
                                            "text_align": "center"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "tag": "column",
                    "width": "weighted",
                    "weight": 1,
                    "vertical_align": "top",
                    "elements": [
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "grey",
                            "columns": [
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**app名称\n<font color='green'> {{$main->appName}}</font>**",
                                            "text_align": "center"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "tag": "column",
                    "width": "weighted",
                    "weight": 1,
                    "vertical_align": "top",
                    "elements": [
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "grey",
                            "columns": [
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**日期\n {{$main->date}}**",
                                            "text_align": "center"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    "tag": "column",
                    "width": "weighted",
                    "weight": 1,
                    "vertical_align": "top",
                    "elements": [
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "grey",
                            "columns": [
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**appUrl\n[appUrl]( {{$main->appUrl}})**",
                                            "text_align": "center"
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "tag": "hr"
        },
        {
            "tag": "hr"
        },
        @foreach ($detail as $row)
        {
            "fields": [
                {
                    "is_short": true,
                    "text": {
                        "content": "**tagId:**\n{{$row->tagId}}",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "**tag名称:**\n{{$row->tagName}}",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "**crash次数**:\n{{$row->crashCount}}",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "**crash用户数:**\n{{$row->crashUser}}",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "",
                        "tag": "lark_md"
                    }
                },
                {
                    "is_short": true,
                    "text": {
                        "content": "**tag类型(1为sdk上设置上报,2为页面手动设置)**:\n{{$row->type}}",
                        "tag": "lark_md"
                    }
                }
            ],
            "tag": "div"
        },
        {
            "tag": "action",
            "actions": [
                {
                    "tag": "button",
                    "text": {
                        "tag": "plain_text",
                        "content": "查看详情"
                    },
                    "type": "primary",
                    "multi_url": {
                        "url": "{{$row->url}}",
                        "android_url": "",
                        "ios_url": "",
                        "pc_url": ""
                    }
                }
            ]
        },
        {
            "tag": "hr"
        }
        @if ($loop->last)
        @else
    ,
        @endif

        @endforeach
    ],
    "header": {
        "template": "red",
        "title": {
            "content": "TAG Crash统计",
            "tag": "plain_text"
        }
    }
}
